import requests

cookies = {
    'JSESSIONID': '9DBF93401592DB2CD3E33C8F39114855',
    'https_waf_cookie': 'c253f474-358a-48016d27c1934cc50b5082bdfe2853c793b0',
}

headers = {
    'host': 'mzfwh.huashan.org.cn',
    'accept': 'application/json, text/plain, */*',
    'accept-language': 'zh-CN,zh-Hans;q=0.9',
    'x-requested-with': 'XMLHttpRequest',
    'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001f2f) NetType/WIFI Language/zh_CN',
    'referer': 'https://mzfwh.huashan.org.cn/doctor/list?pay=1&hospitalid=17&firstsectionid=2,7,33,43&secondsectionid=%%E7%%9A%%AE%%E8%%82%%A4%%E7%%A7%%91',
    # 'accept-encoding': 'gzip, deflate, br',
    # 'cookie': 'JSESSIONID=9DBF93401592DB2CD3E33C8F39114855; https_waf_cookie=c253f474-358a-48016d27c1934cc50b5082bdfe2853c793b0',
}

response = requests.get(
    'https://mzfwh.huashan.org.cn/common/api?cmd=DoctorList&hospitalid=17&firstsectioncode=2%%2C7%%2C33%%2C43&clinicdateid=&secondsectionid=&keyword=&clinictypeid=&hossectionname=%%E7%%9A%%AE%%E8%%82%%A4%%E7%%A7%%91&ipage=1&pagesize=50',
    cookies=cookies,
    headers=headers,
    verify=False,
)

print(response.text)